package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.CpcEf01Mapper;
import com.ruoyi.system.domain.CpcEf01;
import com.ruoyi.system.service.ICpcEf01Service;

/**
 * Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-01-03
 */
@Service
public class CpcEf01ServiceImpl implements ICpcEf01Service 
{
    @Autowired
    private CpcEf01Mapper cpcEf01Mapper;

    /**
     * 查询
     * 
     * @param id 主键
     * @return 
     */
    @Override
    public CpcEf01 selectCpcEf01ById(Long id)
    {
        return cpcEf01Mapper.selectCpcEf01ById(id);
    }

    @Override
    public CpcEf01 selectCpcEf01ByCId(Long id)
    {
        return cpcEf01Mapper.selectCpcEf01ByCId(id);
    }

    /**
     * 查询列表
     * 
     * @param cpcEf01 
     * @return 
     */
    @Override
    public List<CpcEf01> selectCpcEf01List(CpcEf01 cpcEf01)
    {
        return cpcEf01Mapper.selectCpcEf01List(cpcEf01);
    }

    /**
     * 新增
     * 
     * @param cpcEf01 
     * @return 结果
     */
    @Override
    public int insertCpcEf01(CpcEf01 cpcEf01)
    {
        return cpcEf01Mapper.insertCpcEf01(cpcEf01);
    }

    /**
     * 修改
     * 
     * @param cpcEf01 
     * @return 结果
     */
    @Override
    public int updateCpcEf01(CpcEf01 cpcEf01)
    {
        return cpcEf01Mapper.updateCpcEf01(cpcEf01);
    }

    /**
     * 批量删除
     * 
     * @param ids 需要删除的主键
     * @return 结果
     */
    @Override
    public int deleteCpcEf01ByIds(Long[] ids)
    {
        return cpcEf01Mapper.deleteCpcEf01ByIds(ids);
    }

    /**
     * 删除信息
     * 
     * @param id 主键
     * @return 结果
     */
    @Override
    public int deleteCpcEf01ById(Long id)
    {
        return cpcEf01Mapper.deleteCpcEf01ById(id);
    }
}
